#include "Sa2dDom.h"

simulation::simulation() {
	myperformer = new performer();
	myphysicsengine = new physicsEngine();
}

performer* simulation::getPerformer() {
	return myperformer;
}
physicsEngine* simulation::getPhysicsEngine() {
	return myphysicsengine;
}

string simulation::toString(int indent){
	string tabs = this->getIndent(indent);
	stringstream returnString;
	returnString << tabs << "simulation:\n\n";
	returnString << myphysicsengine->toString(indent+1) << "\n" << myperformer->toString(indent+1);
	return returnString.str();
}

simulation::~simulation(){
	delete myperformer;
	delete myphysicsengine;
}
